####################################################################
#
# HoI - CORE IBERIA
#
# LIMIT:  802000 - 851999
#
# 802000 - (SPR) Gets humanitary help
# 802001 - (SPA) Los Maquis
# 802002 - (SPR) Spanish Civil War - Viva la Repblica!!!
# 802003 - (SPA) Incidente Unamuno- Lets give SPA some dissent!
# 802004 - (SPA) Receives GER commanders and tech support
# 802005 - (SPA) Receives ITA advisors and tech support
# 802006 - (SPR) Receives SOV advisors and tech support
# 802007 - (SPR) Receives ENG advisors and tech support
# 802008 - (SPR) Receives FRA advisors and tech support
# 802009 - (SPR) After Victorious in civil war, decide which type of government
# 802010 - (SPA) Hendaya meeting
# 802011 - (SPA) SPA joins Axis
# 802012 - (SPA) SPA doesnt join axis- GER rejects offer
# 802013 - (SPA) SPA joins the axis before "Hendaye Meeting"
# 802014 - (SPR) Start of the civil war (by Generalisimo)
# 802015 - (SPA) End of the civil war (by Generalisimo)
# 802016 - (SPR) End of the civil war (by Generalisimo)
# 802017 - (SPA) Start of the civil war (by Generalisimo)
#
####################################################################

#########################################################
# SPR gets humanitary help
# by nachinus
#########################################################

event = {
	id = 802000 # 50101
	random = no
	country = SPR

	#Triggered by USA 322006

	name = "American humanitarian aid to the Spanish Republic"
	desc = "Although no democratic country sent military help to the Spanish Republic, the pressure of public opinion, and the impact of the press showing the cruelty of the war, motivated some countries to sent humanitarian help. The Republic received ambulances, food, medicine, and medical personnel, as well as Red Cross volunteers."
	style = 0

	action_a = {
		name = "Accept the American foreign aid"
		command = { type = alignment which = democratic value = 5 }
		command = { type = supplies value = 50 }
		command = { type = dissent value = -2 }
	}
}

#########################################################
# SPA- Los Maquis
# by nachinus
#########################################################

event = {
	id = 802001 # 50102
	trigger = {
		alignment = fascist
		event = 3004 # SPA wins civil war
		NOT = {
			OR = {
				alliance = { country = FRA country = SPA }
				alliance = { country = SOV country = SPA } #Theres no hope for armed resistance
				}
			}
	}
	random = no
	country = SPA

	name = "Los Maquis: the anti-fascist guerrillas"
	desc = "During, and after, the war, thousands of people fled to the mountains to avoid the Franquist repression. Many of these refugees joined together, creating a guerrilla network in many Spanish territories. The guerillas attacked targets such as infrastructure, mines, falangist housing, but their primary objective was to survive. With the outbreak of war in Europe, the guerillas thought the Allies would bring their war against fascism to Spain, and therefore decided to help the Allies. This help came mainly in the form of information, but not exclusively: the mugularis, or passeurs, helped approximately 7000 Jews, spies, resistance members, and British pilots to escape from German-occupied France. Although the guerillas were never a serious danger to Franco, he was forced to commit a lot of resources and men to exterminate them."
	style = 0

	date = { day = 19 month = july year = 1936 }
	offset = 30 # Check for trigger conditions every 30 days
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = "Send the Guardia Civil and Polica Armada to exterminate them"
		command = { type = dissent value = 3 }
		command = { type = supplies value = -200 }
		command = { type = manpowerpool value = -15 }
		command = { type = infrastructure which = -1 value = -5 }
		command = { type = infrastructure which = -1 value = -5 }
		command = { type = coalpool value = -100 }
	}
	action_b = {
		name = "We can not afford the resources to eliminate them"
		command = { type = supplies value = -100 }
		command = { type = dissent value = 6 }
		command = { type = infrastructure which = -1 value = -10 }
		command = { type = infrastructure which = -1 value = -10 }
		command = { type = coalpool value = -500 }
		command = { type = industry which = -1 value = -1 }
		command = { type = industry which = -1 value = -1 }
	}
}

#########################################################
#  SPR- Spanish Civil War - Viva la Repblica!!!
# by nachinus
#########################################################

event = {
	id = 802002 # 50103
	random = no
	country = SPR

	trigger = {
		NOT = {
			exists = SPA
	   	}
	}
	name = "The end of the Spanish Civil War: Viva la Repblica"
	desc = "The Spanish Civil War resulted in more than 500,000 deaths, not only on the battlefield. The Fascists, with a extermination policy imposed by the High Command, executed approximately 90,000 people. Cruelty, however, was present on both sides. Though the government asked its troops not to take reprisals, many angry militians took justice into their own hands.  7,000 clerics were killed, and many falangists and enemy soldiers were executed. The land that was left for those who won the war was a land full of hunger, poverty, and dead bodies in ditches."
	style = 0

	date = { day = 19 month = july year = 1936 }
	offset = 5 # Check for trigger conditions every 5 days
	deathdate = { day = 30 month = december year = 1947 }


	action_a = {
		name = "We shall recover from this catastrophe" #
		command = { type = dissent value = -5 }
		command = { type = warentry which = SPR value = -10 }
		command = { type = capital which = 972 } #Madrid
	}
}

#########################################################
#SPA- Incidente Unamuno- Lets give SPA some dissent!
# by nachinus
#########################################################

event = {
	id = 802003 # 50104
	trigger = {
		atwar = yes
		event = 802004 #SPA gets GER tech support
		alignment = fascist
		control = { province = 978 data = SPA } #Salamanca
		control = { province = 957 data = SPA } #Burgos
		control = { province = 959 data = SPA } #Vigo
		control = { province = 966 data = SPA } #Valladolid
		control = { province = 967 data = SPA } #Zaragoza
		control = { province = 977 data = SPA } #Badajoz
		control = { province = 988 data = SPA } #Sevilla
		random = 65
	}
	random = no
	country = SPA

	name = "Unamuno criticizes the fascist movement"
	desc = "On October 22nd, 1936, the philosopher, writer, and poet Miguel de Unamuno, Rector of the University of Salamanca, and one of the most influential intellectual figures in Spain, pronounced a very critical speech about franquist project during an academic lecture. Unamuno finished the speech with the phrase: you may win, but you will not convince. The reprisal was immediate. General M. Astray replied with a threat, saying: Hail to death, death to intelligence! A few days later, Unamuno was forced into poverty. Other cultural figures suffered worse fates: Federico Garca Lorca was assassinated, Miguel Hernndez was imprisoned, and Antonio Machado went into exile."
	style = 0

	date = { day = 22 month = october year = 1936 }
	offset = 60 # Check for trigger conditions every 60 days
	deathdate = { day = 22 month = april year = 1937 }

	action_a = {
		name = "Make a public rebuttal: 'Death to Intelligence'"
		command = { type = dissent value = 5 }
		command = { type = influence value = -2 }
		command = { type = alignment which = democratic value = -2 }
	}
	action_b = {
		name = "We will not tolerate traitors; kill Unamuno"
		command = { type = dissent value = 10 }
		command = { type = influence value = -4 }
		command = { type = alignment which = fascist value = 10 }
	}
	action_c = {
		name = "Leave him alone; he has a right to an opinion"
		command = { type = dissent value = 3 }
		command = { type = alignment which = fascist value = -3 }
	}
}


###########################################################
#SPA-Receives GER commanders and tech support
# by nachinus
#########################################################

event = {
	id = 802004 # 50115
	random = no
	country = SPA

	#Triggered by GER 172033

	name = "Germany sends commanders and technological support to Nationalist Spain"
	desc = "During the Spanish Civil War, some German commanders were cooperating with rebels. This sharing of knowledge on modern strategy, when combined with Spanish commanders experience, helped to develop new strategic Army doctrine. Also, tons of German weaponry were shipped to Spain, along with the means to manufacture them. Thus, many German Mauser Kar98 rifles, known as el muser to Spanish soldiers, were produced and extensively used by Nationalist forces. The Mauser Kar98 became the reglamentary rifle of National Army and Guardia Civil for many years."
	style = 0

	action_a = {
		name = "Excellent, we will use them well"
		command = { type = alignment which = fascist value = 2 }
		command = { type = supplies value = 500 }
		#command = { type = gain_tech which = 1200 } #Basic Inf Weapons
		#command = { type = gain_tech which = 1201 } #Service Rifle
		command = { type = gain_tech which = 1203 } #AT Rifles-Added
		command = { type = gain_tech which = 11101 } #Tactical offensive regime
		command = { type = gain_tech which = 12002 } #'Blitz' Bombing Doctrine
		command = { type = gain_tech which = 11100 } #Pre-War testing
		command = { type = gain_tech which = 11103 } #Motorized HQs-Added
		command = { type = gain_tech which = 14008 } #30mm ATG-Added
		command = { type = gain_tech which = 2993 } #Inf support tank batallion-Added
	}
}

###########################################################
#SPA-Receives ITA advisors and tech support
# by nachinus
#########################################################

event = {
	id = 802005 # 50116
	random = no
	country = SPA

	#Triggered by ITA 462029 

	name = "Italy send advisors and technological support to Nationalist Spain"
	desc = "During the Spanish Civil War, some Italian commanders were cooperating with rebels. This sharing of knowledge on modern strategy, when combined with Spanish commanders experience, helped to develop new strategic Army doctrine. Also, tons of Italian weaponry were shipped to Spain, along with the means to manufacture them. If Germany had not shipped its weapons to Spain, Franco would have been forced to rely on Italian weaponry to win the war, and instead of the Mauser, Rebel troops probably would have been armed with Mannlicher rifles."
	style = 0

	action_a = {
		name = "Excellent, we will use them well"
		command = { type = alignment which = fascist value = 1 }
		command = { type = supplies value = 300 }
		#command = { type = gain_tech which = 1200 } #Basic Inf Weapons
		#command = { type = gain_tech which = 1201 } #Service Rifle
		command = { type = gain_tech which = 14004 } #70mm InfGun
		command = { type = gain_tech which = 11100 } #Pre-War testing
		command = { type = gain_tech which = 11103 } #Motorized HQs-Added
		command = { type = gain_tech which = 14973 } #12.70mm MGs (Breda)-Added
		command = { type = gain_tech which = 2993 } #Inf support tank batallion-Added
	}
}

###########################################################
#SPR Receives SOV advisors and tech support
# by nachinus
#########################################################

event = {
	id = 802006 # 50117
	random = no
	country = SPR

	#Triggered by SOV 222013 

	name = "Russia sends advisors and technological support to Republican Spain"
	desc = "During the Spanish Civil War, some Russian commanders were cooperating with the Republicans. This sharing of knowledge on modern strategy, when combined with Spanish commanders experience, helped to develop new strategic Army doctrine. Also, tons of Russian weaponry were shipped to Spain, along with the means to manufacture them. Mosin-Nagant rifles were widely used, and if the Republic had won the war, the Mosin-Nagant probably would have become the reglamentary rifle instead of the Mauser."
	style = 0

	action_a = {
		name = "Excellent, we will use them well"
		command = { type = alignment which = communist value = 2 }
		command = { type = supplies value = 500 }
		#command = { type = gain_tech which = 1200 } #Basic Inf Weapons
		#command = { type = gain_tech which = 1201 } #Service Rifle
		command = { type = gain_tech which = 11104 } #Tactical defensive regime
		command = { type = gain_tech which = 11100 } #Pre-War testing
		command = { type = gain_tech which = 14004 } #70mm InfGun-Added
		command = { type = gain_tech which = 14008 } #30mm ATG-Added-Added
		command = { type = gain_tech which = 2993 } #Inf support tank batallion-Added
	}
}

###########################################################
#SPR Receives ENG advisors and tech support
# by nachinus
#########################################################

event = {
	id = 802007 # 50118
	random = no
	country = SPR

	#Triggered by ENG 272007

	name = "Britain sends advisors and technological support to Republican Spain"
	desc = "The Spanish Civil War was a war against fascism. Although Britain did not agree with Republican ideology, it was at least a democratic nation fighting against tirany. During the Spanish Civil War, some British commanders co-operated with the Republicans. This sharing of knowledge on modern strategy, when combined with Spanish commanders experience, helped to develop new strategic Army doctrine. Also, tons of British weaponry were shipped to Spain, along with the means to manufacture them."
	style = 0

	action_a = {
		name = "Excellent, we will use them well"
		command = { type = alignment which = democratic value = 2 }
		command = { type = supplies value = 300 }
		#command = { type = gain_tech which = 1200 } #Basic Infantry Weapons and Battlefield C3I
		#command = { type = gain_tech which = 1201 } #Service Rifle
		#command = { type = gain_tech which = 1301 } #Medium mortar
		command = { type = gain_tech which = 14004 } #70mm InfGun-Added
		command = { type = gain_tech which = 11100 } #Pre-War testing
		command = { type = gain_tech which = 11104 } #Tactical defensive regime
		command = { type = gain_tech which = 13002 } #Merchant Rider Doctrine-Added
	}
}

###########################################################
#SPR Receives FRA advisors and tech support
# by nachinus
#########################################################

event = {
	id = 802008 # 50119
	random = no
	country = SPR

	#Triggered by FRA 432002

	name = "France sends advisors and technological support to Republican Spain"
	desc = "During the Spanish Civil War, some French commanders were cooperating with the Republicans. This sharing of knowledge on modern strategy, when combined with Spanish commanders experience, helped to develop new strategic Army doctrine. Also, tons of French weaponry were shipped to Spain, along with the means to manufacture them."
	style = 0

	action_a = {
		name = "Excellent, we will use them well"
		command = { type = alignment which = democratic value = 2 }
		command = { type = supplies value = 300 }
		#command = { type = gain_tech which = 1200 } #Basic Infantry Weapons and Battlefield C3I
		#command = { type = gain_tech which = 1201 } #Service Rifle
		command = { type = gain_tech which = 14004 } #70mm InfGun-Added
		command = { type = gain_tech which = 14006 } #90mm Howitzer-Added
		command = { type = gain_tech which = 11100 } #Pre-War testing
		command = { type = gain_tech which = 11104 } #Tactical defensive regime
		}
}

######################################################################################
#SPR- After Victorious in civil war, decide which type of government
# by nachinus
#########################################################

event = {
	id = 802009 # 50105
	trigger = {
		event = 90103 #SPR wins the war
		event = 90117 #SPR gets SOV tech support
		alignment = democratic
		atwar = no
		NOT = {
			OR = {
				alliance = { country = GER country = SPR }
				alliance = { country = SOV country = SPR }
				alliance = { country = ENG country = SPR }
				event = 3101 #Communist coup
				}
	   		}
	}
	random = no
	country = SPR

	name = "Republican Spain decides its political future"
	desc = "During the Civil War, the Communist movement was very important to Republican Spain: International Brigades were created by the Comintern, and many militia forces were raised and commanded by communist leaders. Also, the Soviet Union sent a lot of aid to the Republic. This undoubtedly created an important pro-soviet feeling in postwar Spain. If the Republicans had won the war, this may have been a determinant factor in the polical future of Spain."
	style = 0

	date = { day = 30 month = july year = 1936 }
	offset = 90 # Check for trigger conditions every 90 days
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = "Continue with our democratic model"
		command = { type = influence value = 2 }
		command = { type = alignment which = democratic value = 5 }
	}
	action_b = {
		name = "Comrades: welcome the Communist Revolution"
		command = { type = dissent value = 10 }
		command = { type = alignment which = communist value = 150 }
		command = { type = headofstate which = 11051 } # Jos Daz Ramos
		command = { type = headofgovernment which = 11052 } # Jos Daz Ramos
		command = { type = foreignminister which = 11053 } # Julio lvarez del Vayo
		command = { type = armamentminister which = 11054 } # Enrique Castro Delgado
		command = { type = ministerofsecurity which = 11055 } # Santiago Carrillo Solares
		command = { type = ministerofintelligence which = 11056 } # Red Shadow
		command = { type = chiefofstaff which = 11057 } # Miguel Tagea Lacorte
		command = { type = chiefofarmy which = 11058 } # Enrique Lster Forjn
		command = { type = chiefofnavy which = 11059 } # Francisco Galn Rodrguez
		command = { type = chiefofair which = 11060 } # Ignacio Hidalgo de Cisneros
		}
}



#---------------------------------------

##################################################
#Hendaya meeting-SPA decides its participation in WWII-Blue Division
# by nachinus
##############################################

event = {
id = 802010
random = no
country = SPA

trigger = {
	control = { province = 552 data = GER } # Brussels
	control = { province = 553 data = GER } # Lux
	control = { province = 550 data = GER } # Amsterdam
	control = { province = 527 data = GER } # Paris
	OR = {
		control = { province = 594 data = GER } # copenhagen172050
		event = 172050
	}
	headofstate = 10031 #Franco
	minister = 1 #Hitler
	event = 3002 #SPA gets GER support in Civil War
	atwar = no
	alignment = fascist
	NOT = {
		exists = SPR
		exists = POL
		alliance = { country = GER country = SPA }
		war = { country = GER country = USA }
		}
#	OR = {
#		control = { province = 664 data = GER } # Oslo
#		NOT = {
#			war = { country = GER country = NOR }
#			}
#		}
	}

	name = "The Hendaye meeting between Franco and Hitler"
desc = "On October 23rd, 1940, a historic meeting between Franco and Hitler took place in the French city of Hendaya, near the Spanish border. The purpose of the encounter, held in a armoured wagon in the city train station, was to negociate Spanish participation in World War Two alongside the Axis powers. Spain had previously solicited the rights to Gibraltar and all Moroccan territories, along with enormous industrial and economic help from Germany as payment for its participation. The final agreement ended up being only that Germany would receive the Spanish Blue Division, and to take control of some mines and weapon factories: Spain would otherwise stand apart from the war."
	style = 0

	date = { day = 23 month = january year = 1938 }
	offset = 29 # Check for trigger conditions every 30 days
	deathdate = { day = 29 month = december year = 1945 } 

	action_a = { 
		name = "Send the Blue Division and some resources" 
		command = { type = manpowerpool value = -25 } 
		command = { type = supplies value = -100 }
		command = { type = coalpool value = -1000 } # As long as I know, GER took control over Wolframium mines, but there is no Wolframium in the game!
		command = { type = steelpool value = -1000 }
		command = { type = trigger which = 172035 }
		command = { type = alignment which = fascist value = -5 }
	}
	action_b = { 
		name = "Offer to join the Axis.(If rejected well give Blue Div)" 
		command = { type = trigger which = 172036 } # SPA offers to join Axis
	}
	action_c = { 
		name = "We will stand apart from Germany"
		command = { type = influence = -10 }
		command = { type = alignment which = fascist value = -10 }
	}
}

##############################################
#SPA joins Axis (by nachinus)
##############################################

event = { 
id = 802011
random = no
country = SPA

#triggered by GER 172036

	name = "The Hendaya final agreement: Spain joins the Axis"
desc = "The discussion on the intervention of Spain was long and tense. Hitler wanted Spain to participate more actively in the war, but Franco knew that his country was not prepared to fight another war so soon after the end of the Spanish Civil War, so he demanded major economical, technological and military help from Hitler, along with rights to Gibraltar and Moroccan territories, in exchange for Spain to fully join the Axis cause."
	style = 0

	action_a = { 
		name = "Join the Axis; on with the Fascist movement" 
		command = { type = alliance which = GER }
		command = { type = supplies value = 2000 }
		command = { type = coalpool value = 2000 }
		command = { type = steelpool value = 2000 }
		command = { type = rubberpool value = 1000 }
		command = { type = oilpool value = 1000 }
		command = { type = alignment which = fascist value = 10 }
		command = { type = gain_tech which = 1200 } #Basic Inf weapons and c3I
		command = { type = gain_tech which = 11200 } #Early war exp analysis
		command = { type = gain_tech which = 11204 } #Deep Defense
		command = { type = addcore which = 989 } #Gibraltar - removed from spain.inc
		command = { type = addcore which = 1012 } #Fez
		command = { type = addcore which = 1011 } #Casablanca
		command = { type = addcore which = 1022 } #Agadir
		command = { type = addcore which = 1007 } #Tuggurt
		command = { type = addcore which = 1023 } #Tafilalt
	} 
} 

##############################################
#SPA doesnt join axis- GER rejects offer
# by nachinus
##############################################

event = { 
id = 802012
random = no
country = SPA

#triggered by GER 172036

	name = "The Hendaya final agreement: the Spanish demands are rejected"
desc = "The discussion on the intervention of Spain was long and tense. Hitler wanted Spain to participate more actively in the war, but Franco knew that his country was not prepared to fight another war so soon after the end of the Spanish Civil War, so he demanded major economical, technological and military help from Hitler, along with rights to Gibraltar and Moroccan territories, in exchange for Spain to fully join the Axis cause. Hitler tried hard to negotiate around the Spanish conditions, but Franco did not give in. In the end, Spain chose to stand apart, and only sent the Blue Division to Germany and gave them control of some mines."
	style = 0

	action_a = { 
		name = "Send the Blue Division and some resources" 
		command = { type = manpowerpool value = -25 } 
		command = { type = supplies value = -100 }
		command = { type = coalpool value = -1000 } # As long as I know, GER took control over Wolframium mines, but there is no Wolframium in the game!
		command = { type = steelpool value = -1000 }
		command = { type = trigger which = 172035 }
} 
}

##############################################
#SPA joins the axis before "Hendaya Meeting"
# by Generalisimo
##############################################

event = { 
	id = 802013
	random = no
	country = SPA

	trigger = {
		alliance = { country = GER country = SPA } 
		} 

	name = "The Hendaye meeting between Franco and Hitler"
desc = "On October 23rd, 1940, a historic meeting between Franco and Hitler took place in the French city of Hendaya, near the Spanish border. The purpose of the encounter, held in a armoured wagon in the city train station, was to negociate Spanish participation in World War Two alongside the Axis powers. Spain had previously solicited the rights to Gibraltar and all Moroccan territories, along with enormous industrial and economic help from Germany as payment for its participation. The final agreement ended up being only that Germany would receive the Spanish Blue Division, and to take control of some mines and weapon factories: Spain would otherwise stand apart from the war."
	style = 0

	action_a = { 
		name = "No need to wait; join the Axis cause now" 
		command = { type = trigger which = 172036 } # Hendaya final agreement: Spain joins axis
		command = { type = sleepevent which = 802010 } # Hendaye meeting
	} 
}

##############################################
# 802014 - (SPR) Start of the civil war (by Generalisimo)
##############################################

event = { 
id = 802014
random = no
country = SPR

#

	name = "The beginning of the Spanish Civil war"
desc = "Insoburdinant forces under the command of Francisco Franco began the civil war in Spain."
	style = 0

	action_a = { 
		name = "Raise the Republican banner" 
		# First took all the points
		command = { type = province_keypoints which = 959 value = -1 } # Vigo
		command = { type = province_keypoints which = 957 value = -1 } # Burgos
		command = { type = province_keypoints which = 966 value = -1 } # Valladolid
		command = { type = province_keypoints which = 969 value = -2 } # Barcelona
		command = { type = province_keypoints which = 972 value = -3 } # Madrid
		command = { type = province_keypoints which = 981 value = -2 } # Valencia
		command = { type = province_keypoints which = 988 value = -1 } # Sevilla
		command = { type = province_keypoints which = 990 value = -1 } # Malaga
			# Now add 1 to every city
		command = { type = province_keypoints which = 959 value = 1 } # Vigo
		command = { type = province_keypoints which = 957 value = 1 } # Burgos
		command = { type = province_keypoints which = 966 value = 1 } # Valladolid
		command = { type = province_keypoints which = 969 value = 1 } # Barcelona
		command = { type = province_keypoints which = 972 value = 1 } # Madrid
		command = { type = province_keypoints which = 981 value = 1 } # Valencia
		command = { type = province_keypoints which = 988 value = 1 } # Sevilla
		command = { type = province_keypoints which = 990 value = 1 } # Malaga
		command = { type = province_keypoints which = 952 value = 1 } # Huesca
		command = { type = province_keypoints which = 954 value = 1 } # Bilbao
		command = { type = province_keypoints which = 953 value = 1 } # Pamplona
		command = { type = province_keypoints which = 967 value = 1 } # zaragoza
		command = { type = province_keypoints which = 971 value = 1 } # Tortosa
		command = { type = province_keypoints which = 970 value = 1 } # Lleida
		command = { type = province_keypoints which = 980 value = 1 } # Cuenca
		command = { type = province_keypoints which = 996 value = 1 } # Cartagena
		command = { type = province_keypoints which = 983 value = 1 } # Albacete
		command = { type = province_keypoints which = 995 value = 1 } # Almeria
		command = { type = province_keypoints which = 991 value = 1 } # Granada
		command = { type = province_keypoints which = 987 value = 1 } # Cordoba
		command = { type = province_keypoints which = 977 value = 1 } # Badajoz
		command = { type = province_keypoints which = 978 value = 1 } # Salamanca
		command = { type = province_keypoints which = 956 value = 1 } # Gijon
		#Infra Hit (testing)
		command = { type = infrastructure which = 959 value = -3 } # Vigo
		command = { type = infrastructure which = 990 value = -6 } # Malaga
		command = { type = infrastructure which = 953 value = -6 } # Pamplona
		command = { type = infrastructure which = 952 value = -4 } # Huesca
		command = { type = infrastructure which = 971 value = -7 } # Tortosa
		command = { type = infrastructure which = 970 value = -6 } # Lleida
		command = { type = infrastructure which = 980 value = -7 } # Cuenca
		command = { type = infrastructure which = 996 value = -6 } # Cartagena
		command = { type = infrastructure which = 983 value = -7 } # Albacete
		command = { type = infrastructure which = 995 value = -6 } # Almeria
		command = { type = infrastructure which = 991 value = -7 } # Granada
		command = { type = infrastructure which = 987 value = -7 } # Cordoba
		command = { type = infrastructure which = 977 value = -4 } # Badajoz
		command = { type = infrastructure which = 978 value = -6 } # Salamanca
		command = { type = infrastructure which = 956 value = -3 } # Gijon
#		command = { type = infrastructure which = 957 value = -7 } # Burgos
		command = { type = infrastructure which = 967 value = -6 } # zaragoza	
	} 
}

##############################################
# 802015 - (SPA) End of the civil war (by Generalisimo)
##############################################

event = { 
id = 802015
random = no
country = SPA

trigger = {
	event = 802017
	#owned = { province = 957 data = SPA } # Burgos
	#owned = { province = 972 data = SPA } # Madrid
	NOT = {
		exists = SPR # SPA wins
		}
	} 

	name = "The end of the Spanish Civil War: Nationalist victory"
desc = "The Nationalist forces, under the control of Franco, won the Spanish Civil War against Republican forces."
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1947 } 

	action_a = { 
	name = "Today we raise the flag of victory" 
	# Remove the 1
		command = { type = province_keypoints which = 959 value = -1 } # Vigo
		command = { type = province_keypoints which = 957 value = -1 } # Burgos
		command = { type = province_keypoints which = 966 value = -1 } # Valladolid
		command = { type = province_keypoints which = 969 value = -1 } # Barcelona
		command = { type = province_keypoints which = 972 value = -1 } # Madrid
		command = { type = province_keypoints which = 981 value = -1 } # Valencia
		command = { type = province_keypoints which = 988 value = -1 } # Sevilla
		command = { type = province_keypoints which = 990 value = -1 } # Malaga
		command = { type = province_keypoints which = 952 value = -1 } # Huesca
		command = { type = province_keypoints which = 954 value = -1 } # Bilbao
		command = { type = province_keypoints which = 953 value = -1 } # Pamplona
		command = { type = province_keypoints which = 967 value = -1 } # zaragoza
		command = { type = province_keypoints which = 971 value = -1 } # Tortosa
		command = { type = province_keypoints which = 970 value = -1 } # Lleida
		command = { type = province_keypoints which = 980 value = -1 } # Cuenca
		command = { type = province_keypoints which = 996 value = -1 } # Cartagena
		command = { type = province_keypoints which = 983 value = -1 } # Albacete
		command = { type = province_keypoints which = 995 value = -1 } # Almeria
		command = { type = province_keypoints which = 991 value = -1 } # Granada
		command = { type = province_keypoints which = 987 value = -1 } # Cordoba
		command = { type = province_keypoints which = 977 value = -1 } # Badajoz
		command = { type = province_keypoints which = 978 value = -1 } # Salamanca
		command = { type = province_keypoints which = 956 value = -1 } # Gijon
	# Return the VPs
		command = { type = province_keypoints which = 959 value = 1 } # Vigo
		command = { type = province_keypoints which = 957 value = 1 } # Burgos
		command = { type = province_keypoints which = 966 value = 1 } # Valladolid
		command = { type = province_keypoints which = 969 value = 2 } # Barcelona
		command = { type = province_keypoints which = 972 value = 3 } # Madrid
		command = { type = province_keypoints which = 981 value = 2 } # Valencia
		command = { type = province_keypoints which = 988 value = 1 } # Sevilla
		command = { type = province_keypoints which = 990 value = 1 } # Malaga
	#Infra Recover (testing)
		command = { type = infrastructure which = 959 value = 3 } # Vigo
		command = { type = infrastructure which = 990 value = 6 } # Malaga
		command = { type = infrastructure which = 953 value = 6 } # Pamplona
		command = { type = infrastructure which = 952 value = 4 } # Huesca
		command = { type = infrastructure which = 971 value = 7 } # Tortosa
		command = { type = infrastructure which = 970 value = 6 } # Lleida
		command = { type = infrastructure which = 980 value = 7 } # Cuenca
		command = { type = infrastructure which = 996 value = 6 } # Cartagena
		command = { type = infrastructure which = 983 value = 7 } # Albacete
		command = { type = infrastructure which = 995 value = 6 } # Almeria
		command = { type = infrastructure which = 991 value = 7 } # Granada
		command = { type = infrastructure which = 987 value = 7 } # Cordoba
		command = { type = infrastructure which = 977 value = 4 } # Badajoz
		command = { type = infrastructure which = 978 value = 6 } # Salamanca
		command = { type = infrastructure which = 956 value = 3 } # Gijon
#		command = { type = infrastructure which = 957 value = 7 } # Burgos
		command = { type = infrastructure which = 967 value = 6 } # zaragoza	
	} 
}

##############################################
# 802016 - (SPR) End of the civil war (by Generalisimo)
##############################################

event = { 
id = 802016
random = no
country = SPR

trigger = {
	event = 802014 
	#owned = { province = 957 data = SPR } # Burgos
	#owned = { province = 972 data = SPR } # Madrid
	NOT = {
		exists = SPA # SPR wins
		}
	} 

	name = "The end of the Spanish Civil War: Republican victory"
desc = "The Republican forces won the Spanish Civil War against Nationalist forces."
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1947 } 

	action_a = { 
	name = "Today we raise the flag of victory" 
	# Remove all the 1
		command = { type = province_keypoints which = 959 value = -1 } # Vigo
		command = { type = province_keypoints which = 957 value = -1 } # Burgos
		command = { type = province_keypoints which = 966 value = -1 } # Valladolid
		command = { type = province_keypoints which = 969 value = -1 } # Barcelona
		command = { type = province_keypoints which = 972 value = -1 } # Madrid
		command = { type = province_keypoints which = 981 value = -1 } # Valencia
		command = { type = province_keypoints which = 988 value = -1 } # Sevilla
		command = { type = province_keypoints which = 990 value = -1 } # Malaga
		command = { type = province_keypoints which = 952 value = -1 } # Huesca
		command = { type = province_keypoints which = 954 value = -1 } # Bilbao
		command = { type = province_keypoints which = 953 value = -1 } # Pamplona
		command = { type = province_keypoints which = 967 value = -1 } # zaragoza
		command = { type = province_keypoints which = 971 value = -1 } # Tortosa
		command = { type = province_keypoints which = 970 value = -1 } # Lleida
		command = { type = province_keypoints which = 980 value = -1 } # Cuenca
		command = { type = province_keypoints which = 996 value = -1 } # Cartagena
		command = { type = province_keypoints which = 983 value = -1 } # Albacete
		command = { type = province_keypoints which = 995 value = -1 } # Almeria
		command = { type = province_keypoints which = 991 value = -1 } # Granada
		command = { type = province_keypoints which = 987 value = -1 } # Cordoba
		command = { type = province_keypoints which = 977 value = -1 } # Badajoz
		command = { type = province_keypoints which = 978 value = -1 } # Salamanca
		command = { type = province_keypoints which = 956 value = -1 } # Gijon
	# Return the VPs
		command = { type = province_keypoints which = 959 value = 1 } # Vigo
		command = { type = province_keypoints which = 957 value = 1 } # Burgos
		command = { type = province_keypoints which = 966 value = 1 } # Valladolid
		command = { type = province_keypoints which = 969 value = 2 } # Barcelona
		command = { type = province_keypoints which = 972 value = 3 } # Madrid
		command = { type = province_keypoints which = 981 value = 2 } # Valencia
		command = { type = province_keypoints which = 988 value = 1 } # Sevilla
		command = { type = province_keypoints which = 990 value = 1 } # Malaga
	#Infra Recover (testing)
		command = { type = infrastructure which = 959 value = 3 } # Vigo
		command = { type = infrastructure which = 990 value = 6 } # Malaga
		command = { type = infrastructure which = 953 value = 6 } # Pamplona
		command = { type = infrastructure which = 952 value = 4 } # Huesca
		command = { type = infrastructure which = 971 value = 7 } # Tortosa
		command = { type = infrastructure which = 970 value = 6 } # Lleida
		command = { type = infrastructure which = 980 value = 7 } # Cuenca
		command = { type = infrastructure which = 996 value = 6 } # Cartagena
		command = { type = infrastructure which = 983 value = 7 } # Albacete
		command = { type = infrastructure which = 995 value = 6 } # Almeria
		command = { type = infrastructure which = 991 value = 7 } # Granada
		command = { type = infrastructure which = 987 value = 7 } # Cordoba
		command = { type = infrastructure which = 977 value = 4 } # Badajoz
		command = { type = infrastructure which = 978 value = 6 } # Salamanca
		command = { type = infrastructure which = 956 value = 3 } # Gijon
#		command = { type = infrastructure which = 957 value = 7 } # Burgos
		command = { type = infrastructure which = 967 value = 6 } # zaragoza	
	} 
}

##############################################
# 802017 - (SPA) Start of the civil war (by Generalisimo)
##############################################

event = { 
id = 802017
random = no
country = SPA

#

name = "The beginning of the Spanish Civil war"
desc = "Insoburdinant forces under the command of Francisco Franco began the civil war in Spain."
style = 0

action_a = { 
name = "Raise the Nationalist banner" 
	# First took all the points
		command = { type = province_keypoints which = 959 value = -1 } # Vigo
		command = { type = province_keypoints which = 957 value = -1 } # Burgos
		command = { type = province_keypoints which = 966 value = -1 } # Valladolid
		command = { type = province_keypoints which = 969 value = -2 } # Barcelona
		command = { type = province_keypoints which = 972 value = -3 } # Madrid
		command = { type = province_keypoints which = 981 value = -2 } # Valencia
		command = { type = province_keypoints which = 988 value = -1 } # Sevilla
		command = { type = province_keypoints which = 990 value = -1 } # Malaga
	# Now add 1 to every city
		command = { type = province_keypoints which = 959 value = 1 } # Vigo
		command = { type = province_keypoints which = 957 value = 1 } # Burgos
		command = { type = province_keypoints which = 966 value = 1 } # Valladolid
		command = { type = province_keypoints which = 969 value = 1 } # Barcelona
		command = { type = province_keypoints which = 972 value = 1 } # Madrid
		command = { type = province_keypoints which = 981 value = 1 } # Valencia
		command = { type = province_keypoints which = 988 value = 1 } # Sevilla
		command = { type = province_keypoints which = 990 value = 1 } # Malaga
		command = { type = province_keypoints which = 952 value = 1 } # Huesca
		command = { type = province_keypoints which = 954 value = 1 } # Bilbao
		command = { type = province_keypoints which = 953 value = 1 } # Pamplona
		command = { type = province_keypoints which = 967 value = 1 } # zaragoza
		command = { type = province_keypoints which = 971 value = 1 } # Tortosa
		command = { type = province_keypoints which = 970 value = 1 } # Lleida
		command = { type = province_keypoints which = 980 value = 1 } # Cuenca
		command = { type = province_keypoints which = 996 value = 1 } # Cartagena
		command = { type = province_keypoints which = 983 value = 1 } # Albacete
		command = { type = province_keypoints which = 995 value = 1 } # Almeria
		command = { type = province_keypoints which = 991 value = 1 } # Granada
		command = { type = province_keypoints which = 987 value = 1 } # Cordoba
		command = { type = province_keypoints which = 977 value = 1 } # Badajoz
		command = { type = province_keypoints which = 978 value = 1 } # Salamanca
		command = { type = province_keypoints which = 956 value = 1 } # Gijon
	#Infra Hit (testing)
		command = { type = infrastructure which = 959 value = -3 } # Vigo
		command = { type = infrastructure which = 990 value = -6 } # Malaga
		command = { type = infrastructure which = 953 value = -6 } # Pamplona
		command = { type = infrastructure which = 952 value = -4 } # Huesca
		command = { type = infrastructure which = 971 value = -7 } # Tortosa
		command = { type = infrastructure which = 970 value = -6 } # Lleida
		command = { type = infrastructure which = 980 value = -7 } # Cuenca
		command = { type = infrastructure which = 996 value = -6 } # Cartagena
		command = { type = infrastructure which = 983 value = -7 } # Albacete
		command = { type = infrastructure which = 995 value = -6 } # Almeria
		command = { type = infrastructure which = 991 value = -7 } # Granada
		command = { type = infrastructure which = 987 value = -7 } # Cordoba
		command = { type = infrastructure which = 977 value = -4 } # Badajoz
		command = { type = infrastructure which = 978 value = -6 } # Salamanca
		command = { type = infrastructure which = 956 value = -3 } # Gijon
#		command = { type = infrastructure which = 957 value = -7 } # Burgos
		command = { type = infrastructure which = 967 value = -6 } # zaragoza	
	} 
}

##############################################
## 802018 - (SPR) Tarradellas Plan (by mfigueras)
##############################################
event = {
	id = 802018
	trigger = { 
		war = { country = SPR country = SPA }
		owned = { province = 969 data = -1 }
		}
	random = no
	country = SPR

	name = "The Tarradellas Plan"
	desc = "In 1937 the catalan government approved a special economical plan, known as 'Tarradellas plan' cause Josep Tarradellas was then the minister of economy of the catalan government. The plan tried to solve the problems that the war had created. It gave great powers to the minister of economy for enforcing laws for war effort, for reorganizing the administrative and economical staff in Catalonia, for imposing new taxes and for helping in the collectivization of factories. The economical measures tried to progressively change a capitalist production mode to a more socialist one. The plan had considerable succes in these areas, specially for war industries. But the powerful anarchist and communist organizations didn't always like the enforcements of the catalan government."
	style = 0

	date = { day = 12 month = january year = 1937 }
	offset = 30
	deathdate = { day = 30 month = december year = 1947 }

action_a = { name = "Approve the plan"
	command = { type = dissent value = 2 } 
	command = { type = province_manpower which = 969 value = -2 } 
	command = { type = manpowerpool value = -2 } # problems with colect. and anarcos
	command = { type = industry which = 969 value = 2 }
	command = { type = industry which = 970 value = 1 }
	command = { type = industry which = 971 value = 1 } # enforcement of war industry
	}
action_b = { name = "Send the men to the front"
	command = { type = industry which = 969 value = -1 }
	command = { type = industry which = 970 value = -1 } # not enforcement of war industry
	command = { type = add_division which = militia when = 969 }
	}
}

######################################################################
# 802019 - (SPR) Polish carbines to Spain (by Halibutt)
######################################################################

event = {
	id = 802019
	random = no
	country = SPR

	# triggered by POL 702056 A

	name = "Poland wants to send us their weapons"
	desc = "Despite the fact that Poland pronounced full neutrality in Spanish Civil War and banned any arms export and volunteers emigration to any of the belligerent sides, polish state-owned factories sold several hundred thousands carbines and rifles to the Republicans. Most were of old 'Kbk wz. 1898' type, but some 8.000 were modern 'Kbk wz. 1929'."
	style = 0

	action_a = {
		name = "Accept the offer" # We need arms
		command = { type = trigger which = 702057 } # POL sending them
		command = { type = supplies value = 200 }
		command = { type = gain_tech which = 1200 } #Basic Inf Weapons
		command = { type = gain_tech which = 1201 } # Semi-Automatic Rifle
		command = { type = steelpool value = -250 }
		command = { type = manpowerpool value = 5 } # Brigadas Internacionales
		}
	action_b = {
		name = "Decline the offer" # We do not need them
		command = { type = trigger which = 702058 } # POL NOT sending them
		}
}

############################################
# 802020 - (SPR) Euskadi Autonomy Statute (by Generalisimo)
############################################

event = { 
id = 802020
random = no
country = SPR

trigger = {
	# triggers if Bilbao is surrounded by Nat. Spain
	random = 30
	war = { country = SPA country = SPR }
	control = { province = 954 data = SPR } # Bilbao
	OR = {
		control = { province = 972 data = SPA } # Madrid
		control = { province = 981 data = SPR } # Valencia
		}
	control = { province = 971 data = SPA } # Tortosa
	control = { province = 957 data = SPA } # Burgos
	control = { province = 959 data = SPA } # Vigo
	OR = {
		AND = {
			control = { province = 956 data = SPA } # Gijon
			control = { province = 953 data = SPA } # Pamplona
			}
		AND = {
			control = { province = 956 data = SPA } # Gijon
			control = { province = 952 data = SPA } # Huesca 
			}
		AND = {
			control = { province = 953 data = SPA } # Pamplona
			control = { province = 952 data = SPA } # Huesca 
			}
		}
	}

name = "Basque Parliament breaks with Central Government"
desc = "The majoritary party in the Basque Parliament, PNV (Basque Nationalist Party) announced yesterday that their ministers and counselors would leave their seats in Central and Autonomic Governments. They said that they took this decision because the Central Government had forgotten about Euskadi, leaving it isolated and helpless after the fascist aggresion. The demisse of those counselors caused a big commotion, as it left the Autonomic Government useless due to PNV's majority in the chamber. This morning, the PNV, backed by nationalist militias (gudaris), dissolved the Autonomic Government and installed a new independent government declaring Euskadi an independent state that would continue the war against fascism with their own means."
style = 0

date = { day = 1 month = august year = 1936 }
offset = 10
deathdate = { day = 30 month = december year = 1940 }

action_a = {
	name = "Leave them. We can't deal with this until the war is over" 
	command = { type = independence which = u04 value = 1 }
	command = { type = influence which = -4 }
	command = { type = manpower value = -100 }
	command = { type = supplies value = -500 }
	command = { type = trigger which = 802021 } # ESK setup
	}
action_b = {
	name = "We won't tolerate this. Close the Basque Parliament ad illegalize PNV" 
	command = { type = dissent value = 8 }
	command = { type = sleepevent which = 802021 } # U04 independence
	command = { type = sleepevent which = 802022 } # SPA doesn't recognize
	command = { type = sleepevent which = 172130 } # GER doesn't recognize
	}
}

##########################
# 802021 - (U04) Euskadi Independence (by Generalisimo)
##########################
event = { 
id = 802021
random = no
country = U04

# Triggered by SPR 802020

name = "Independence!!!"
desc = "..."
style = 0

action_a = {
name = "OK" 
	command = { type = alignment which = communist value = -10 }
	command = { type = dissent value = 10 }
	command = { type = access which = SPR }

	#command = { type = headofstate which = }
	#command = { type = headofgovernment which = }
	#command = { type = foreignminister which = }
	#command = { type = ministerofsecurity which = }
	#command = { type = ministerofintelligence which = }
	#command = { type = chiefofstaff which = }
	#command = { type = chiefofarmy which = }
	#command = { type = chiefofnavy which = }
	#command = { type = chiefofair which = }

	command = { type = add_division which = infantry when = 954 }
	command = { type = add_division which = militia  when = 954 }
	command = { type = add_division which = militia  when = 954 }
	command = { type = manpower value = 80 }
	command = { type = supplies value = 5000 }
	command = { type = coalpool value = 500 }
	command = { type = steelpool value = 500 }
	command = { type = oilpool value = 500 }
	command = { type = rubberpool value = 500 }

	command = { type = trigger which = 802022 } # SPA declaration of war
	command = { type = trigger which = 172130 } # GER declaration of war
	}	
}

###############################
# 802022 - (SPA) Nat.Spain doesn't recognize Euskadi (by Generalisimo)
###############################
event = { 
id = 802022
random = no
country = SPA

trigger = {
	exists = U04
	war = { country = SPR country = SPA }
	NOT = {
	OR = {
		war = { country = SPA country = U04 }
		alliance = { country = SPA country = U04 }
		}
		}
	}

name = "Nationalist Spain doesn't recognize Euskadi"
desc = "One of the main objectives of the rebellion against the Republic was to crush the nationalist movements in Spanish territory. The ultra-conservative sectors in Spain saw the 'Estatuto de Autonoma' given to Catalua as a traision to Spanish History, and they thought that this kind of self-government in provinces could lead to disaster and ultimatelly cause the desintegration of Spain. In National-held provinces it was forbidden to use local idioms (such as Catalan, Euskera or Galego), or show regionalists flags or symbols. Failing to obey those orders would mean impriosonement or even execution. National forces fought fiercely against local nationalsts militias and took terrible reprisals against nationalists politicians and supporters. Just the same as communists and anarchists, they were seen as 'the enemies of Spain'."
style = 0

date = { day = 1 month = august year = 1936 }
offset = 2
deathdate = { day = 30 month = december year = 1940 }

action_a = {
	name = "We do not recognize this Government" 
	command = { type = war which = U04 }
	command = { type = dissent value = -2 } # offset dissent hit from DOW
	}
}

############################################
# 802023 - (SPR) Catalunya Autonomy Statute (by Generalisimo)
############################################

event = { 
id = 802023
random = no
country = SPR

trigger = {
	# triggers if Barcelona is surrounded by Nat. Spain
	random = 70
	war = { country = SPA country = SPR }
	control = { province = 969 data = SPR } # Barcelona
	OR = {
		control = { province = 972 data = SPR } # Madrid
		control = { province = 981 data = SPR } # Valencia
		}
	#control = { province = 957 data = SPA } # Burgos
	#control = { province = 959 data = SPA } # Vigo
	OR = {
		AND = {
			control = { province = 953 data = SPA } # Pamplona
			control = { province = 952 data = SPA } # Huesca
			}
		AND = {
			control = { province = 953 data = SPA } # Pamplona
			control = { province = 971 data = SPA } # Tortosa 
			}
		AND = {
			control = { province = 952 data = SPA } # Huesca
			control = { province = 971 data = SPA } # Tortosa 
			}
		}
	}

name = "Catalan separatists attack Central Government facilities" # and declare independence
desc = "The differences and confrontations between Central Government and the Generalitat (Catalan Autonomic Government) have reached their most critical point. Separatist militias supporting the Generalitat have attacked and seized several Central Government facilities in Barcelona and Lleida. They have control of telephonic services, train stations and several weapons and supllies depots. The Generalitat has declared that they effectively control all services and institutions in the region and that from now, Catalonia will continue fighting in the war as an independent state allied with the Republic of Spain against a common enemy."

style = 0

date = { day = 1 month = august year = 1936 }
offset = 3
deathdate = { day = 30 month = december year = 1940 }

action_a = {
	name = "Leave them. We can't deal with this until the war is over" 
	command = { type = independence which = u05 value = 1 }
	command = { type = influence which = -4 }
	command = { type = manpower value = -100 }
	command = { type = supplies value = -500 }
	command = { type = trigger which = 802024 } # CAT setup
	}
action_b = {
	name = "We won't tolerate this" 
	command = { type = dissent value = 8 }
	command = { type = sleepevent which = 802024 } # U05 independence
	command = { type = sleepevent which = 802025 } # SPA doesn't recognize
	command = { type = sleepevent which = 172131 } # GER doesn't recognize
	}
}

##########################
# 802024 - (U05) Catalunya Independence (by Generalisimo)
##########################
event = { 
id = 802024
random = no
country = U05

# Triggered by SPR 802023

name = "Independence!!!"
desc = "..."
style = 0

action_a = {
name = "OK" 
	command = { type = alignment which = communist value = -10 }
	command = { type = dissent value = 10 }
	command = { type = access which = SPR }

	#command = { type = headofstate which = }
	#command = { type = headofgovernment which = }
	#command = { type = foreignminister which = }
	#command = { type = ministerofsecurity which = }
	#command = { type = ministerofintelligence which = }
	#command = { type = chiefofstaff which = }
	#command = { type = chiefofarmy which = }
	#command = { type = chiefofnavy which = }
	#command = { type = chiefofair which = }

	command = { type = add_division which = infantry }
	command = { type = add_division which = militia }
	command = { type = add_division which = militia }
	command = { type = manpower value = 80 }
	command = { type = supplies value = 5000 }
	command = { type = supplies value = 500 }
	command = { type = coalpool value = 500 }
	command = { type = steelpool value = 500 }
	command = { type = oilpool value = 500 }
	command = { type = rubberpool value = 500 }

	command = { type = trigger which = 802025 } # SPA declaration of war
	command = { type = trigger which = 172131 } # GER declaration of war
	}	
}

###############################
# 802025 - (SPA) Nat.Spain doesn't recognize Catalunya (by Generalisimo)
###############################
event = { 
id = 802025
random = no
country = SPA

trigger = {
	exists = U05
	war = { country = SPR country = SPA }
	NOT = {
		OR = {
		war = { country = SPA country = U05 }
		alliance = { country = SPA country = U05 }
			}
		}
	}

name = "Nationalist Spain doesn't recognize Catalunya"
desc = "One of the main objectives of the rebellion against the Republic was to crush the nationalist movements in Spanish territory. The ultra-conservative sectors in Spain saw the 'Estatuto de Autonoma' given to Catalua as a traision to Spanish History, and they thought that this kind of self-government in provinces could lead to disaster and ultimatelly cause the desintegration of Spain. In National-held provinces it was forbidden to use local idioms (such as Catalan, Euskera or Galego), or show regionalists flags or symbols. Failing to obey those orders would mean impriosonement or even execution. National forces fought fiercely against local nationalsts militias and took terrible reprisals against nationalists politicians and supporters. Just the same as communists and anarchists, they were seen as 'the enemies of Spain'."
style = 0

date = { day = 1 month = august year = 1936 }
offset = 2
deathdate = { day = 30 month = december year = 1940 }

action_a = {
	name = "We do not recognize this government" 
	command = { type = war which = U05 }
	command = { type = dissent value = -2 } # offset dissent hit from DOW
	}
}

#########################################################################
#  802026 - (SPR) Political Assassinations in Madrid (by Fallout_Boy)
#########################################################################
event = {
	id = 802026 # 41021
	random = no
	country = SPR
	trigger = { dissent = 10 }
	name = "Political Assassinations in Madrid"
	desc = "On July 12 Lieutenant Jos Castillo was shot and killed by right wing militants outside his home in Madrid. Castillo had led the police force that repressed a violent Monarchist demonstration earlier in the year and had collaborated in training Socialist militias. In retaliation for the killing, friends of Castillo in the Assault Guards assassinated Jos Calvo Sotelo, leader of the Monarchist opposition in parliament. These events shocked the public, and prompted the army to take action against the civilian government which had allowed the country to fall into such disorder."
	style = 0

	date = { day = 12 month = july year = 1936 }

	action_a = {
		name = "OK"
		command = { type = dissent value = 6 }
		command = { type = sleepminister which = 11044 } # Sotelo
	}
}

#########################################################################
#  802027 - (SPA) Uprising Fails in Barcelona, General Goded Arrested and Executed (by Fallout_Boy)
#########################################################################
event = {
	id = 802027 # 45080
	random = no
	country = SPA
	name = "General Goded captured and executed in Barcelona"
	desc = "The uprising reached Barcelona the morning of July 19, when General Fernndez Burriel seized key areas of the city in preparation for the arrival of General Goded from Majorca to take command of rebel forces in Catalonia. Throughout the day there was bloody fighting in the streets of Barcelona, with the resistance led by militias of the CNT (anarchist labor union), together with police forces still loyal to the government. By the evening of the 19th the attempted coup had failed, the remaining pockets of resistance finally surrendered in the morning of July 20. Goded was forced to announce over the radio that he had fallen prisoner and that further fighting was useless. The leaders of the Barcelona uprising were executed."

	style = 0
	trigger = { 
		war = { country = SPA country = SPR }
		control = { province = 969 data = SPR } 
		random = 75 
	}
	date = { day = 20 month = july year = 1936 }
	offset = 1
	deathdate = { day = 25 month = july year = 1936 }
	action_a = {
		name = "OK" 
		command = { type = dissent value = 1 }
		command = { type = sleepleader which = 3415 }  # Goded Llopis
		command = { type = sleepleader which = 3412 }  # Fernandez Burriel
	}
}

#########################################################################
#  802028 - (SPA) General Sanjurjo Dies in Plane Crash (by Fallout_Boy)
#########################################################################
event = {
	id = 802028 # 43080
	random = no
	country = SPA
	name = "General Sanjurjo killed in plane crash"
	desc = "General Jose Sanjurjo was returning from exile in Portugal to assume command of the military uprising when his plane crashed shortly after takeoff. Senior General Cabanellas was named Chairman of the National Junta of Defense, but his presidency was only a symbolic one. In reality, Nationalist forces were commanded by General Mola in the north, Franco in Morocco and the Canaries, and Quiepo de Llano in Andalusia. "

	style = 0
	trigger = { 
		war = { country = SPA country = SPR }
		random = 75
	}
	date = { day = 20 month = july year = 1936 }
	action_a = {
		name = "OK" 
		command = { type = dissent value = 1 }
		command = { type = sleepminister which = 10032 }  # Sanjurjo (headofstate)
		command = { type = sleepminister which = 10034 }  # Sanjurjo (headofgov)
		command = { type = sleepleader which = 3433 }     # Sanjurjo (leader)
		command = { type = headofstate which = 10001 }    # Cabanellas
		command = { type = headofgovernment which = 10002 }	# Cabanellas
	}
}

#########################################################################
#  802029 - (SPR) International Brigades Formed (by Fallout_Boy)
#########################################################################
event = {
	id = 802029 # 49141
	random = no
	country = SPR
	
	name = "International Brigades"
	desc = "As the great fascist and communist powers took sides in the Spanish Civil War, the conflict came to symbolize for many the struggle between the two ideologies. While democratic nations followed a policy of appeasement and non-intervention, anti-fascist idealists from many nations went to Spain as volunteers. Mainly recruited and organized by the Communist International, over 30,000 volunteers were formed into what became known as the International Brigades."
	style = 0
	trigger = {
		random = 25
		war = { country = SPR country = SPA }
		event = 3102	# USSR Intervention
		OR = {
			event = 3002	# German intervention
			event = 3003	# Italian intervention
		}
	}	
	date = { day = 12 month = august year = 1936 }
	offset = 14
	deathdate = { day = 1 month = january year = 1939 }
	
	action_a = {
		name = "OK"
		command = { type = dissent value = -2 }
		command = { type = add_division which = infantry }
		command = { type = manpowerpool value = 20 }
		command = { type = alignment which = communist value = 15 }
	}
}

#########################################################################
#  802030 - (SPA) Generalissimo Franco Named Head of State (by Fallout_Boy)
#########################################################################
event = {
	id = 802030 # 41152
	random = no
	country = SPA
	
	name = "Generalissimo Franco named Head of State"
	desc = "On October 1, 1936 General Francisco Franco settled all leadership disputes within the Nationalist forces and was proclaimed Commander in Chief of the Nationalist Army and Head of the Spanish State. Franco assumed the rank of Generalissimo and the title el Caudillo (the leader). "
	style = 0

	trigger = { government = fascist }	

	date = { day = 29 month = september year = 1936 }
	action_a = {
		name = "OK"
		command = { type = headofstate = 10031 } # Franco
		command = { type = headofgovernment = 10002 } # Davila
		command = { type = ministerofsecurity = 10047 } # Serrano
		command = { type = dissent value = -2 }
	}
}

#########################################################################
#  802031 - (SPA) General Mola Dies in a Plane Crash (by Fallout_Boy)
#########################################################################

event = {
	id = 802031 # 41157
	random = no
	country = SPA
	name = "General Mola killed in plane crash"
	desc = "General Emilio Mola, who laid the initial plans for the July 1936 uprising, died less than a year later when his plane crashed in bad weather. His death cemented Franco's position as Nationalist Spain's supreme leader."
	style = 0
	trigger = { 
		war = { country = SPA country = SPR }
		random = 75
	}

	date = { day = 2 month = june year = 1937 } 

	action_a = {
		name = "OK" 
		command = { type = sleepminister which = 10008 }  # Mola (minister)
		command = { type = sleepleader which = 3421 }     # Mola (leader)
		command = { type = dissent value = -1 }
	}
}

#########################################################################
#  802032 - (SPA) Pope Pius XI Gives his blessing to Spanish Nationalists (by Fallout_Boy)
#########################################################################
event = {
	id = 802032 # 41170
	random = no
	country = SPA

	name = "Pope Pius XI gives his blessing to Spanish Nationalists"
	desc = "The Pope gave a speech denouncing the atrocities against Catholics in Republican Spain, in which he distinguished between the Christian heroism of the Nationalists and the savage barbarism of the Republic. The Pope gave his blessing to 'those who have assumed the difficult and dangerous task of defending and restoring the rights and honor of Church and religion.' The support of the Vatican helped to unify the different factions within the Nationalist zone, the Civil War was portrayed as a crusade to defend Catholicism against Atheism and Communism."
	style = 0

	trigger = { 
		war = { country = SPA country = SPR }
		event = 3003 # Italy supports SPA
		event = 3102   # USSR
		lost_VP = { country = SPR value = 15 }
		random = 10
	}

	date =  { day = 14 month = september year = 1936 }
	offset = 14
	deathdate =  { day = 30 month = december year = 1939 }

	action_a = {
		name = "OK" 
		command = { type = dissent value = -2 }
		command = { type = alignment which = communist value = -10 }
		command = { type = influence value = 1 }
		command = { type = warentry which = ENG value = -1 }
		command = { type = warentry which = FRA value = -2 }
		command = { type = warentry which = USA value = -2 }
	}
}

#########################################################################
#  1936 General Elections
#  remove 1936 election section of ministers_spr.csv to avoid having 2 elections
#########################################################################
event = {
	id = 802033
	random = no
	country = SPR
	name = "1936 Elections"
	desc = "When a crisis in government arose in late 1935, President Niceto Alcal-Zamora appointed a caretaker Prime Minister and scheduled elections for February 1936. The electorate was polarized after the uprising of October 1934, and Zamora feared another revolt if the right wing came to power again. The Right was opposed in the elections by the Popular Front coalition, including left republicans, socialists, Catalan autonomists, and communists."
	style = 0

	trigger = { alignment = democratic }
	date = { day = 16 month = february year = 1936 }

	action_a = {
		name = "Elect Popular Front (Left)"
		command = { type = dissent value = 4 }
		command = { type = alignment which = communist value = 20 }
		command = { type = alignment which = fascist value = -10 }
		command = { type = headofgovernment which = 11062 } # Azana
		command = { type = foreignminister which = 11038 } # Barcia Trelles
		command = { type = armamentminister which = 11039 } # Franco Lopez
		command = { type = ministerofsecurity which = 11040 } # Salvador Carreras
		command = { type = chiefofstaff which = 11083 }  # Estrada
		command = { type = chiefofarmy which = 11086 }  # Masquelet
		command = { type = chiefofnavy which = 11092 }  # Giral
	}
	action_b = {
		name = "Elect National Front (Right)"
		command = { type = dissent value = 4 }
		command = { type = alignment which = fascist value = 20 }
		command = { type = alignment which = communist value = -10 }
		command = { type = headofgovernment which = 11042 } # Gil-Robles
		command = { type = foreignminister which = 11043 } # Jmenez Fernndez
		command = { type = armamentminister which = 11044 } # Calvo-Sotelo
		command = { type = ministerofsecurity which = 11045 } # Salmn Amorn
		command = { type = ministerofintelligence which = 11046 } # Orgaz Yoldi
		command = { type = sleepevent which = 802034  }  
	}	
}

#########################################################################
#  President Alcal-Zamora deposed
#########################################################################
event = {
	id = 802034
	random = no
	country = SPR
	name = "President Alcal-Zamora Deposed, Azaa becomes President"
	desc = "In April 1936 President Alcal-Zamora was deposed by the Cortes on the grounds that he had exceeded his constitutional authority by calling general elections in February. The same parties that had come to power in the election used it as the pretext to remove Zamora and replace him with Manuel Azaa. When moderate Socialist Indalecio Prieto failed to gain the support of the Left to form a government, an all Republican cabinet was formed by Santiago Casares Quiroga."
	style = 0

	trigger = { headofgovernment = 11062 } # Azana
	date = { day = 10 month = may year = 1936 }

	action_a = {
		name = "OK" #
		command = { type = dissent value = 2 }  
		command = { type = alignment which = communist value = 10 }
		command = { type = headofstate which = 11062 }  # Azana
		command = { type = headofgovernment which = 11063 }  # Casares
	}
}

#########################################################################
#  802035 - (SPA) Nationalist Spain receives oil from US (by Fallout_Boy)
#########################################################################
event = { 
	id = 802035 # 45011
	random = no
	country = SPA
	
	# Triggered by USA 322056 (45010)
	
	name = "Oil shipments from U.S."
	desc = "Franco received nearly 2 million tons of oil on credit from the Texas Oil Company during the civil war. Other aid to the Nationalists was provided by American companies such as Ford, Studebaker, Standard Oil, and General Motors, including over 12,000 American trucks, more than twice the number received from both Germany and Italy."
	style = 0
	
	action_a = {
		name = "OK" # Great!
		command = { type = supplies value = 600 }
		command = { type = oilpool value = 1000 }
		command = { type = infrastructure which = -1 value = 2 }
		command = { type = infrastructure which = -1 value = 2 }
		command = { type = infrastructure which = -1 value = 2 }
	}
}

######################################################################
#  802036 - (SPR) Spanish Colonial Policy (by Fallout_Boy)
######################################################################
event = {
	id = 802036 # 41180
	random = no
	country = SPR

	name = "Spanish Colonial Policy"
	desc = "The Republican government was approached by a delegation of Moroccan nationalists, offering to raise a rebellion against Franco in return for a guarantee of Moroccan independence. This proposal was advocated by some Anarchists and Communists, who argued that a successful insurrection would cause dissent among Franco's Moroccan divisions and divert troops away from the front in Spain. However, There was little support for Moroccan independence among Republican politicians, fearing the French reaction if the revolt spread into neighboring French Africa. Instead, Morocco was used as a bargaining chip in an attempt to gain the support of the western democracies."
	style = 0
	
	trigger = {
		war = { country = SPR country = SPA }
		lost_VP = { country = SPR value = 40 }
		NOT = {
			AND = { 
				event = 3103  # supplies from ENG
				event = 3104  # supplies from FRA
			}
		}
		NOT = {
			alliance = { country = SPR country = ENG }
			war = { country = ENG country = SPA }
			war = { country = ENG country = GER }
			war = { country = SOV country = SPA }
		}
	}
	date = { day = 1 month = october year = 1936 }
	offset = 7
	deathdate = { day = 30 month = december year = 1939 }
	random = 25

	action_a = {
		name = "Offer Morocco to France in Exchange for Aid"
		command = { type = trigger which = 432043 }  # (41181) French Response
		command = { type = sleepevent which = 802039 } # (SPA) Moroccan Revolt against Nationalist Spain
		command = { type = sleepevent which = 552017 } # (MOR) Independent Morocco Setup
		command = { type = sleepevent which = 432044 } # (FRA) Moroccan Revolt Causes Dissent in French Africa
		command = { type = sleepevent which = 272099 } # (ENG) Moroccan Revolt Causes Dissent in British Africa
		command = { type = sleepevent which = 432045 } # (FRA) Revolt Spills Over Into French Morocco
		command = { type = sleepevent which = 552018 } # (MOR) French Morocco Joins Independent Moroccan State
	}
	action_b = {
		name = "Incite Rebellion in Morocco"
		command = { type = alignment which = democratic value = -10 }
		command = { type = influence value = -10 }
		command = { type = supplies value = -150 }
		command = { type = removecore which = 1009 }
		command = { type = trigger which = 802039 }  # (41184) Moroccan Independence
		command = { type = sleepevent which = 432043 } # (FRA) Spain offers Morocco to France in Exchange for Military Aid
		command = { type = sleepevent which = 802037 } # (SPR) France Agrees to Colonies-for-Arms trade
		command = { type = sleepevent which = 802038 } # (SPR) Following Republican Victory, France gets African Colonies
	}
	action_c = {
		name = "Hold On to our African Colonies"
		command = { type = sleepevent which = 802039 } # (SPA) Moroccan Revolt against Nationalist Spain
		command = { type = sleepevent which = 552017 } # (MOR) Independent Morocco Setup
		command = { type = sleepevent which = 432044 } # (FRA) Moroccan Revolt Causes Dissent in French Africa
		command = { type = sleepevent which = 272099 } # (ENG) Moroccan Revolt Causes Dissent in British Africa
		command = { type = sleepevent which = 432045 } # (FRA) Revolt Spills Over Into French Morocco
		command = { type = sleepevent which = 552018 } # (MOR) French Morocco Joins Independent Moroccan State
	}
}

#########################################################################
#  802037 - (SPR) France Agrees to Colonies-for-Arms trade (by Fallout_Boy)
#########################################################################
event = {
	id = 802037 # 41182
	random = no
	country = SPR

	#Triggered by FRA 432043 (41181)

	name = "France Accepts Our Offer"
	desc = "France agrees to provide Spain with arms in return for territorial concessions in North Africa."
	style = 0

	action_a = {
		name = "Excellent"
		command = { type = alignment which = democratic value = 10 }
		command = { type = supplies value = 1000 }
		command = { type = oilpool value = 250 }
		command = { type = add_division which = infantry }
	}
}

#########################################################################
#  802038 - (SPR) Following Republican Victory, France gets African Colonies (by Fallout_Boy)
#########################################################################
event = {
	id = 802038 # 41183
	random = no
	country = SPR

	name = "Transfer of Colonies to France"
	desc = "Fulfilling our agreement, we will cede our Moroccan colonies to France"
	style = 0

	trigger = { 
		event = 41182   # France accepts the offer
		NOT = { exists = SPA } # SPR wins the war
		OR = {  
			control = { province = 1009 data = SPR } # Ceuta
			control = { province = 1027 data = SPR } # Villa Cisernos
		}
	}
	date = { day = 1 month = october year = 1936 }
	offset = 7
	deathdate = { day = 30 month = december year = 1947 } 

	action_a = {
		name = "OK"
		command = { type = secedeprovince which = FRA value = 1009 }  # Transfer both to France
		command = { type = secedeprovince which = FRA value = 1027 }
	}
}

#########################################################################
#  802039 - (SPA) Moroccan Revolt against Nationalist Spain (by Fallout_Boy)
#########################################################################
event = { 
	id = 802039 # 41184
	random = no
	country = SPA
	
	# Triggered by SPR 802036 (41180)

	name = "Uprising in Morocco!"
	desc = "The Republican government was approached by a delegation of Moroccan nationalists, offering to raise a rebellion against us in return for a guarantee of Moroccan independence. The republicans have accepted and now they are helping the moroccans that initiated the uprising against our troops!"
	style = 0
	
	action_a = {
		name = "The Moors will pay for this betrayal!"
		command = { type = independence which = MOR value = 0 }
		command = { type = dissent value = 10 }
		command = { type = manpowerpool value = -75 }
		command = { type = supplies value = -250 }
		command = { type = oilpool value = -50 }
		command = { type = steelpool value = -100 }
		command = { type = coalpool value = -200 }
		command = { type = rubberpool value = -50 }
		command = { type = trigger which = 552017 }  # (41185) MOR Independent Morocco Setup
		command = { type = trigger which = 432044 }  # (41186) FRA Dissent in French Africa
		command = { type = trigger which = 272099 }  # (41189) ENG Dissent in British Africa
	}
}

#########################################################################
# 802040 - (SPR) Nationalist Revolt Sparks Popular Uprising (by Fallout_Boy)
#########################################################################
event = {
	id = 802040 # 41028
	random = no
	country = SPR

	name = "Nationalist Revolt Sparks Popular Uprising"
	desc = "With nearly half the army and the majority of officers corps on the side of rebellion, the Madrid government was paralyzed and unable to organize an effective resistance. When the last desperate attempt at compromise was refused by General Mola, the government gave in to the requests of the anarchist and socialist labor unions and agreed to provide them with arms. By this time workers had already begun seizing arms from barracks, armories and ships, taking to the streets to resist the uprising. The militias succeeded in defeating the insurgents in many areas, often followed by bloody purges of anyone considered sympathetic to the Nationalists."
	style = 0

	trigger = { war = { country = SPR country = SPA } }

	date = { day = 18 month = july year = 1936 }

	action_a = {
		name = "No Pasaran! The Fascists will not pass!"
		command = { type = alignment which = communist value = 20 }
		command = { type = add_division which = militia }
#		command = { type = add_division which = militia }
	}
}